import express from 'express';
import { addCarousel, deleteCarousel, updateCarousel, getCarouselById, getCarousels } from '../controllers/CarouselController';

const router = express.Router();

router.post('/', addCarousel);
router.delete('/:id', deleteCarousel);
router.post('/update', updateCarousel);
router.get('/:id', getCarouselById);
router.post('/page', getCarousels);

export default router;
